// vite.config.ts
import { defineConfig } from "file:///D:/5-29%20%E5%89%8D%E7%AB%AF%E9%A1%B9%E7%9B%AE/vue3.2-vite-ts/node_modules/vite/dist/node/index.js";
import vue from "file:///D:/5-29%20%E5%89%8D%E7%AB%AF%E9%A1%B9%E7%9B%AE/vue3.2-vite-ts/node_modules/@vitejs/plugin-vue/dist/index.mjs";
import commonjs from "file:///D:/5-29%20%E5%89%8D%E7%AB%AF%E9%A1%B9%E7%9B%AE/vue3.2-vite-ts/node_modules/@rollup/plugin-commonjs/dist/es/index.js";
import { resolve } from "path";
import { createSvgIconsPlugin } from "file:///D:/5-29%20%E5%89%8D%E7%AB%AF%E9%A1%B9%E7%9B%AE/vue3.2-vite-ts/node_modules/vite-plugin-svg-icons/dist/index.mjs";
import path from "path";
var __vite_injected_original_dirname = "D:\\5-29 \u524D\u7AEF\u9879\u76EE\\vue3.2-vite-ts";
var vite_config_default = defineConfig({
  plugins: [
    commonjs(),
    vue(),
    // createStyleImportPlugin({
    //   resolves: [
    //     VxeTableResolve()
    //   ],
    // }),
    createSvgIconsPlugin({
      // 指定要缓存的文件夹
      iconDirs: [path.resolve(process.cwd(), "src/assets/svg")],
      // 指定symbolId格式
      symbolId: "[name]"
    })
  ],
  server: {
    host: "0.0.0.0",
    //解决“vite use `--host` to expose”
    port: 9999,
    open: true,
    proxy: {
      "/api": {
        target: "http://192.168.44.57:8888",
        // 指定后端服务器的 URL
        changeOrigin: true,
        // 是否改变请求头的来源为目标 URL
        rewrite: (path2) => path2.replace(/^\/api/, "")
        // 可选配置，用于重写请求路径
      }
    }
  },
  resolve: {
    alias: [
      {
        find: "@",
        replacement: resolve(__vite_injected_original_dirname, "src")
      }
    ],
    extensions: [".vue", ".js", ".ts"]
  },
  css: {
    preprocessorOptions: {
      scss: {
        additionalData: '@import "@/style/variables.scss";'
      }
    }
  },
  build: {
    chunkSizeWarningLimit: 1500,
    rollupOptions: {
      output: {
        manualChunks(id) {
          if (id.includes("node_modules")) {
            return id.toString().split("node_modules/")[1].split("/")[0].toString();
          }
        }
      }
    }
  }
});
export {
  vite_config_default as default
};
//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsidml0ZS5jb25maWcudHMiXSwKICAic291cmNlc0NvbnRlbnQiOiBbImNvbnN0IF9fdml0ZV9pbmplY3RlZF9vcmlnaW5hbF9kaXJuYW1lID0gXCJEOlxcXFw1LTI5IFx1NTI0RFx1N0FFRlx1OTg3OVx1NzZFRVxcXFx2dWUzLjItdml0ZS10c1wiO2NvbnN0IF9fdml0ZV9pbmplY3RlZF9vcmlnaW5hbF9maWxlbmFtZSA9IFwiRDpcXFxcNS0yOSBcdTUyNERcdTdBRUZcdTk4NzlcdTc2RUVcXFxcdnVlMy4yLXZpdGUtdHNcXFxcdml0ZS5jb25maWcudHNcIjtjb25zdCBfX3ZpdGVfaW5qZWN0ZWRfb3JpZ2luYWxfaW1wb3J0X21ldGFfdXJsID0gXCJmaWxlOi8vL0Q6LzUtMjklMjAlRTUlODklOEQlRTclQUIlQUYlRTklQTElQjklRTclOUIlQUUvdnVlMy4yLXZpdGUtdHMvdml0ZS5jb25maWcudHNcIjtpbXBvcnQgeyBkZWZpbmVDb25maWcgfSBmcm9tICd2aXRlJ1xyXG5pbXBvcnQgdnVlIGZyb20gJ0B2aXRlanMvcGx1Z2luLXZ1ZSdcclxuaW1wb3J0IGNvbW1vbmpzIGZyb20gJ0Byb2xsdXAvcGx1Z2luLWNvbW1vbmpzJztcclxuaW1wb3J0IHsgcmVzb2x2ZSB9IGZyb20gJ3BhdGgnXHJcbmltcG9ydCB7IGNyZWF0ZVN2Z0ljb25zUGx1Z2luIH0gZnJvbSAndml0ZS1wbHVnaW4tc3ZnLWljb25zJ1xyXG5pbXBvcnQgcGF0aCBmcm9tICdwYXRoJ1xyXG4vLyBpbXBvcnQgeyBjcmVhdGVTdHlsZUltcG9ydFBsdWdpbiwgVnhlVGFibGVSZXNvbHZlIH0gZnJvbSAndml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